package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 业主投诉记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("complaint")
@Schema(description = "业主投诉记录")
public class Complaint implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    /** 投诉编号 */
    @TableField("com_id")
    @Schema(description = "投诉编号")
    private String complaintCode;

    /** 投诉时间 */
    @TableField("com_date")
    @Schema(description = "投诉时间")
    private LocalDateTime complaintTime;

    /** 处理时间 */
    @TableField("handle_date")
    @Schema(description = "处理时间")
    private LocalDateTime handleTime;

    /** 投诉业主ID */
    @TableField("owner_id")
    @Schema(description = "投诉业主ID")
    private Integer ownerId;

    /** 状态：0-待处理，1-已处理等 */
    @TableField("status")
    @Schema(description = "状态：0-待处理，1-已处理等")
    private Integer status;

    /** 处理人ID */
    @TableField("clr")
    @Schema(description = "处理人ID")
    private Integer handlerId;

    /** 备注/处理结果 */
    @TableField("remarks")
    @Schema(description = "备注/处理结果")
    private String remarks;
}
